package com.cyanite.playlv2api.types;

import com.cyanite.playlv2api.util.ConstantsUtils;

import android.os.Parcel;
import android.os.Parcelable;

public class VenueCategory implements PlayLv2Type, Parcelable {

    private int mId;
    public VenueCategory()  {
    }

    private VenueCategory(Parcel in) {
    }

    public static final Parcelable.Creator<VenueCategory> CREATOR = new Parcelable.Creator<VenueCategory>() {
        public VenueCategory createFromParcel(Parcel in) {
            return new VenueCategory(in);
        }

        @Override
        public VenueCategory[] newArray(int size) {
            return new VenueCategory[size];
        }
    };

	public void setId(int id)  {
	    mId = id;
	}

	public int getId()   {
	    return mId;
	}

	public int getNameRes()    {
	    return ConstantsUtils.VenueCategoryRes.mName[mId];
	}

    public int getIconVenueRes()   {
        return ConstantsUtils.VenueCategoryRes.mIconVenue[mId];
    }
    public int getTaskNameRes(){
        return ConstantsUtils.VenueCategoryRes.mSearchTaskName[mId];
    }


    public int getIconRes()   {
        return ConstantsUtils.VenueCategoryRes.mIcon[mId];
    }

	/* from server only have one layer categories
	public void setChildCategories(Group<VenueCategory> categories)    {
	    mChildCategories = categories;
	}

	public Group<VenueCategory> getChildCategories()   {
	    return mChildCategories;
	}
	*/

	@Override
    public void writeToParcel(Parcel out, int flags) {
    }

    @Override
    public int describeContents() {
        return 0;
    }
}


